home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
ALOWELE.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
52 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_ALowElement( axArray ) --> nLowElement
PARAMETERS:
axArray : array of CHAR, DATE, or NUM elements
SHORT:
Get the element number of the lowest value in an array of char, num, or date.
DESCRIPTION:
_ALowElement() returns the element number associated with the lowest
value from an array of Character Strings, Dates or Numerics.
ALL elements must be of the same type! If the array contains mixed elements,
a run-time error will occur.
If the array in not CHAR, DATE, or NUM, the return value is NIL.
NOTE:
See also:
_AHighVal() which returns the highest value.
_ALowVal() which returns the lowest value.
_AHighElement() which returns the element number associated with the
highest value.
EXAMPLE:
LOCAL aArray := { 1,5,3,9,12,7 }
t = _ALowElement( aArray )
Result: t = 1
LOCAL aArray := { 'Wallace', 'Jones', 'Taylor', 'Abdul' }
t = _ALowElement( aArray )
Result: t = 4
******************************************************************************/